package com.testfileupload.uploadimg.design.abstractfactory.human;

import com.testfileupload.uploadimg.design.abstractfactory.human.abstracthuman.Human;
import com.testfileupload.uploadimg.design.abstractfactory.human.humanfactory.FemaleFactory;
import com.testfileupload.uploadimg.design.abstractfactory.human.humanfactory.HumanFactory;

public class NvWa {
    public static void main(String[] args) {
        HumanFactory humanFactory = new FemaleFactory();
        Human blackHuman = humanFactory.createBlackHuman();
        blackHuman.sex();
        Human whiteHuman = humanFactory.createWhiteHuman();
        whiteHuman.sex();
        Human yellowHuman = humanFactory.createYellowHuman();
        yellowHuman.sex();
    }
}
